package info.yaohua.util;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class SessionNull
	{
		public static void forwordTo(HttpServletRequest req,
				HttpServletResponse resp)
			{
				RequestDispatcher view = req.getRequestDispatcher("/login.jsp");
			
				//	resp.sendRedirect("http://localhost:8080/xxfb/login.jsp");
				try {
					view.forward(req, resp);
				} catch (Exception e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

			}
	}
